package com.itheima_7;

import java.util.concurrent.CountDownLatch;

public class CountDownLatchDemo1 {
    public static void main(String[] args) {
        CountDownLatch c=new CountDownLatch(3);
        Mother m=new Mother(c);
        m.start();
        chileThread1 t1=new chileThread1(c);
        t1.setName("小云");
        chileThread1 t2=new chileThread1(c);
        t2.setName("小黄");
        chileThread1 t3=new chileThread1(c);
        t3.setName("小帆");
        t1.start();
        t2.start();
        t3.start();
    }
}
